<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="./icon/ico.ico">
<%@page contentType="text/html; charset=UTF-8" language="java"%>
<title>登陆</title>

<!-- Bootstrap core CSS -->
<link href="./css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="./css/signin.css" rel="stylesheet">

<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="./js/ie-emulation-modes-warning.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="./js/ie10-viewport-bug-workaround.js"></script>

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
	<%
		String flag = request.getParameter("flag");
		if (flag != null) {
	%>
	<script language=javascript>
		function re() {
			top.location.href = 'login.jsp';
			re = new Function()
			{
			}
		}
		re();
	</script>
	<%
		}
	%>
	<div class="container">

		<form action="LoginAction" class="form-signin" role="form"
			method="post">
			<h2 class="form-signin-heading">请登录</h2>
			<input type="text" class="form-control" placeholder="用户名"
				name="username" required autofocus> <input type="password"
				name="password" class="form-control" placeholder="密码" required>
			<button name="submit" class="btn btn-lg btn-primary btn-block"
				type="submit">登陆</button>
			<a href="register.jsp" name="submit"
				class="btn btn-lg btn-primary btn-block">注册</a>
		</form>
		<%
			String hint = (String) request.getAttribute("hint");
		%>
		<%
			if (hint != null) {
				if (hint.equals("retry")) {
		%>
		<script type="text/javascript">
			alert("用户名或密码错误");
		</script>
		<%
			}
			}
		%>


	</div>
	<!-- /container -->


	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
</body>
</html>
